<include file="Public/header" title="导航栏列表" />
<style>
    th,td{
        text-align: center;
    }
</style>

<div id="page-wrapper">
    <ol class="breadcrumb">
        <li class="breadcrumb-item">
            <a href="/admin.php">首页</a>
        </li>
        <li class="breadcrumb-item active">导航栏管理</li>
    </ol>
    <div class="col-md-6">
        <a href="{:U('Tar/add')}" class="btn btn-success">添加导航栏</a>
    </div>
    <table class="table table-hover table-striped">
        <thead>
        <tr>
            <th>编号</th>
            <th>导航名称</th>
            <th>类型</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="v">
                <tr>
                    <td>{$v.id}</td>
                    <td>{$v.tar_name}</td>
                    <th>test</th>
                    <td><a href="{:U('Tar/update?id=')}{$v.id}">编辑</a> | <a href="{:U('Tar/delete?id=')}{$v.id}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a></td>
                </tr>
        </foreach>
        </tbody>
    </table>
    <div class="clearfix"></div>
</div>

<include file="Public/footer" />